{{include file = "layouts/operation/header.tpl"}}
<script src="public/operation/js/invite.js" type="text/javascript"></script>
<script type="text/javascript" src="{{$smarty.const.WEBSITE_URL}}/public/assets/js/layer.min.js"></script>
 
<div class="top"></div>
<div class="draw">
	<img src="public/operation/photo/yqhy-mid-photo.jpg" />
</div>
<div class="inviteLink paddingLeft220">
	<div class="layoutCenter">
		<p class="tips tips_font">Invitation link: copy the following invitation link and send it to your friends through FB,Twitter,Pinterest or email. 
		</p>
		<p class="tips tips_font"> Once your friend registered Babyspeedy.com through the link, you will get the reward.
		</p>
		<form id="onclickcopy">
			<input type="text" tabindex="1" class="linkBox"
				placeholder="http://www.mizhe.com/#NEWFg" value="{{$inviteLink}}"/> 
<!-- 				<input type="button" tabindex="2" class="oncopy-but" /> -->
		</form>
		<p class="select mt30">OR</p>
		<p class="tips tips_font">Tell your friends with Email</p>
		<form id="emailinvitation"  >
			<input type="text" id="fin_mail" name="fin_mail" tabindex="1" class="inputBox emailBox"
				placeholder="xxxx@xxx" /> <input type="text" tabindex="2"  id="sin_mail" name="sin_mail"
				class="inputBox emailBox" placeholder="xxxx@xxx" />
			<div>
				<textarea name="invite_msg" id="invite_msg" tabindex="3" class="inputBox textareaBox"
					placeholder="Invitation Message："></textarea>
				<input id="invite_send" type="button" value="" tabindex="4" class="emailinvitation-but" />
			</div>
		</form>
	</div>
</div>
<div class="inviteRules">
	<div class="layoutCenter">
		<img src="public/operation/photo/btn-yqgz.jpg" />
		<pre class="tips_font yqgz_font">
		1:Successfully invite one friend to register and login Babyspeedy.com, you will get the points randomly,
			the reward will reach your account within 24 hours.
    	2:For every friend you invited to join Babyspeedy.com (login and register successfully), you may get our
    	 	biggest reward of $11(random points and $10 coupon).
		3:The friend you invite should be a new user( which means the people never login Babyspeedy.com before), 
			and if the people is already our old user, you will not get reward.  
		4:You can send your invitation link to your friends through Facebook,Twitter,MSN,Email,etc. Or you may 
			also can share the link on any other social media.
		  
</pre>
<!--		<input type="text" class="zbtxBox yqgz_font tips_font"-->
<!--			value="禁作弊提醒：严禁自己邀请自己、刷小号等作弊行为，一旦反作弊系统监测到作弊行为，将拉黑账号处理，邀请也无效。" />-->
	</div>

</div>
<div class="inviteLogs">
	<!-- 此处是邀请记录-->
	<div class="layoutCenter">
		<div class="yqjiheader">
			<p class="yqjlTitle">People who are getting the rewards!</p>
			<img src="public/operation/photo/btn-yqjl.jpg" class="yqjiluTitle" />
		</div>
		<div class="yqjiangli">
			<table>
				{{foreach from=$comInviteList key=k item=item }}
					<tr>
						<td><img src="public/operation/photo/xng.jpg" /></td>
						<td><span class="fontGreen">{{$item->username}}</span><br />Invite  friends {{$item->invite_user_mail}}
							rebate  100 points</td>
					</tr>

				{{/foreach}}		 
			</table>
		</div>
		<div class="yqjilu">
			<table>
				<tr>
					<th>&nbsp;</th>
					<th class="fontBlue">State</th>
					<th class="fontBlue">Rebate</th>
				</tr>
				
				{{foreach from=$userInviteList key=k item=comitem }}
					 
					<tr>
						<td>{{$comitem->create_time}} Invite <span class="fontBlue">{{$comitem->invite_user_mail}}</span></td>
						{{if $comitem->state eq "1"}}
							<td><span class="fontRed">Registered</span></td>
						{{/if}}
						{{if $comitem->state eq "0"}}
							<td><span class="fontBlue">Unregistered</span></td>
						{{/if}}
						{{if $comitem->rebate eq "1"}}
							<td><span class="fontRed">Has rebates</span></td>
						{{/if}}
						{{if $comitem->rebate eq "0"}}
							<td><span class="fontBlue">No rebate</span></td>
						{{/if}}
<!--						<td><span class="fontRed">{{$comitem->state}}</span></td>-->
<!--						<td><span class="fontRed">{{$comitem->rebate}}</span></td>-->
					</tr>
				{{/foreach}}
				
				 
			</table>
		</div>
	</div>

</div>
{{include file = "layouts/operation/footer.tpl"}}
